package com.cjb.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/index")
public class ConfigController {
    
    @Value("${spring.application.name}")
    private  String name;
    
    
    
    @RequestMapping("/config")
    @ResponseBody
    public String config(){
         try{
           return name;
         }catch(Exception exception){
             return "test";
         }
    }
    
    
    
    
    
}
